<!DOCTYPE html>
<html>
<head>
<base href="${basePath}">
<meta charset="UTF-8">
<title>卡种销售组成分析</title> 
$!{include("import_js_css.html")}
<link rel="stylesheet" type="text/css"
	href="${resourcePath}/css/basic.css" />
	<link draggable="true" rel="stylesheet" href="${viewPath}/resources/css/statistics.css" />
<style type="text/css">
#stat_list table thead tr th {
	vertical-align: middle !important;
	text-align: center; 
}

</style>
<script type="text/javascript">
$(document).ready(function(){
	$("#inputStartDate1").datetimepicker({
		language : "zh-CN"
	});
	$("#inputStartDate2").datetimepicker({
		language : "zh-CN"
	});
});

</script>
</head>
<body>
$!{include("header.html")}
	 
	  
	<div class="container menu_all">
		 <div style="margin-top:-20px;">
		<div style="float:left; margin-top:20px;">分馆&nbsp;&nbsp;${hallName}</div>
		<form action="yueyogaAdmin/cardreports.jhtml" method="POST" name="cardreports">
			 <div style="float:left; margin-top:20px; margin-left:160px; margin-right:5px;">日期</div>
			 <div id="inputStartDate1" class="input-group date"
					data-date-format="YYYY-MM-DD" style="float:left; width:200px; margin-top:15px;">
					<input id="inputStart1" name="startdate1" type='text' class="form-control" value="${startdate1}" />
					<span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
				</div>
			 <div style="float:left; margin-top:20px; margin-left:5px; margin-right:5px;">至</div>
			 <div id="inputStartDate2" class="input-group date"
					data-date-format="YYYY-MM-DD" style="float:left; width:200px; margin-top:15px;">
					<input id="inputStart2" name="startdate2" type='text' class="form-control" value="${startdate2}" />
					<span class="input-group-addon"><span
						class="glyphicon glyphicon-time"></span> </span>
			 </div>
			 <div style="float:left; margin-top:15px;">
			 	<input id="but" type="submit" class="btn btn-ade-default" style="background:#dddd; margin-left:5px;" value="搜索"></input>
			 </div>
		 </form>
	  </div>
	  <br><br>

			<div id="stat_list" class="panel panel-default clear">
			<table class="table table-bordered table-hover table-condensed" style="border-bottom: 1px solid #DDDDDD;">
				<thead>
				<tr>
					<th rowspan="2">卡种</th>
					<th rowspan="2">类型</th>
					<th rowspan="2">基价</th>
					<th rowspan="2">有效期(次数)</th>
					<th rowspan="2">分馆</th>
					<th colspan="3">新销售</th>
					<th colspan="3">定金</th>
					<th colspan="3">续费</th>
					<th colspan="3">退款</th>
					<th rowspan="2">数量</th>
					<th rowspan="2">总金额</th>
				</tr>
				<tr>
					<th>卡数</th>
					<th>金额</th>
					<th>均价</th>
					<th>卡数</th>
					<th>金额</th>
					<th>均价</th>
					<th>卡数</th>
					<th>金额</th>
					<th>均价</th>
					<th>卡数</th>
					<th>金额</th>
					<th>均价</th>
				</tr>
				</thead>
				<!-- #set(CardModel cm) -->
				<!-- #foreach(CardReports cardReport in cm.cardReportList) -->
				<tr>
					<td>${cardReport.cardName}</td>
					<td>${cardReport.cardType}</td>
					<td >${cardReport.cardPrice}</td>
					<!-- #if(cardReport.cardType == "按次数") -->
					<td>${cardReport.cardCount}</td>
					<!-- #else -->
					<!-- #if(cardReport.cardStrTime == null && cardReport.cardEndTime==null) -->
					<td>&nbsp;</td>
					<!-- #else -->
					<td>${cardReport.cardStrTime}至${cardReport.cardEndTime}</td>
					<!-- #end -->
					<!-- #end -->
					<td>${hallName}</td>
					<td>${cardReport.newSellCount}</td>
					<td>${cardReport.newSellAmount.format("0.00")}</td>
					<td>${cardReport.newSellMean.format("0.00")}</td>
					<td>${cardReport.depCount}</td>
					<td>${cardReport.depAmount.format("0.00")}</td>
					<td>${cardReport.depMean.format("0.00")}</td>
					<td>${cardReport.renewCount}</td>
					<td>${cardReport.renewAmount.format("0.00")}</td>
					<td>${cardReport.renewMean.format("0.00")}</td>
					<td>${cardReport.refundCount}</td>
					<td>${cardReport.refundAmount.format("0.00")}</td>
					<td>${cardReport.refundMean.format("0.00")}</td>
					<td>${cardReport.total}</td>
					<td>${cardReport.totalAmount.format("0.00")}</td>
				</tr>
				<!-- #end -->
				
				<tr>
					<td>总计</td>
					<td></td>
					<td ></td>
					<td></td>
					<td></td>
					<td>${cm.xxsczj}</td>
					<td>${cm.xxszj}</td>
					<td></td>
					<td>${cm.djczj}</td>
					<td>${cm.djzj}</td>
					<td></td>
					<td>${cm.xfczj}</td>
					<td>${cm.xfzj}</td>
					<td></td>
					<td>${cm.tfczj}</td>
					<td>${cm.tfzj}</td>
					<td></td>
					<td>${cm.totalczj}</td>
					<td>${cm.totalzj}</td>
				</tr>
			</table>
			</div>
		</div>
</body>
<script>
</script>
</html>